package com.yy.myp.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.yy.myp.dto.LocalPositionDto;

import java.util.List;

@Dao
public interface ILocalPositionDao {

    @Query("select * from local_position")
    List<LocalPositionDto> selectAll();

    @Query("select * from local_position where uid = :uid")
    LocalPositionDto selectById(int uid);

    @Insert
    void insertAll(LocalPositionDto... localPositions);

    @Delete()
    void delete(LocalPositionDto localPos);

}
